﻿using FlightTicketModel;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlightTicketDb
{
    public class FlightTicketDbContext : DbContext
    {
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //modelBuilder.Conventions.Add();
            //modelBuilder.Types()
            base.OnModelCreating(modelBuilder);
        }
        public FlightTicketDbContext():base("name=FlightTicket")
        { }
        public DbSet<Airline> Airline { get; set; }
        public DbSet<AirlineCode> AirlineCode { get; set; }
        public DbSet<AirlineAccount> AirlineCount { get; set; }
        public DbSet<FlightTicketTask> FlightTicketTask { get; set; }
        public DbSet<FlightTicketChildTask> FlightTicketChildTask { get; set; }
        public DbSet<FlightTicketPrice> FlightTicketPrice { get; set; }
    }
}
